FROM python
LABEL version="1.0" description="张启全的向量服务"

WORKDIR /var/www

RUN pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple
RUN pip3 config set install.trusted-host mirrors.aliyun.com

RUN pip3 install gunicorn
RUN pip3 install flask
RUN pip3 install flask_redis
RUN pip3 install pymysql
RUN pip3 install pycryptodome
RUN pip3 install qiniu
RUN pip3 install apscheduler
RUN pip3 install chromadb
RUN pip3 install sentence-transformers
RUN pip3 install torchvision
RUN pip3 install hf_xet

CMD ["gunicorn", "--chdir", ".","-c", "config/server.py", "server:app"]

#docker build -f ./Dockerfile -t zhanshop/vector:latest ./
#docker run --name zhanshop-vector -v ./:/var/www -p 9021:9021/tcp zhanshop/vector:latest